<%--
  Created by IntelliJ IDEA.
  User: Shinelon
  Date: 2018/7/21
  Time: 21:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>HelloWorld</h3>
<a href="hello.do">链接到HelloController中的hello方法</a>

<h3>serviceApi</h3>
<a href="user/search.do">serviceApi</a>

<h3>传入日期对象</h3>
<a href="user/searchByDate.do?date=1996-09-16">String类型date</a>
<a href="user/searchByDate2.do?date=1996-09-16">date类型date</a>

<h3>save</h3>
<a href="user/save.do">save</a>

<h3>传入id,name</h3>
<a href="user/update.do?id=100&name=jack">update</a>

<h3>传入id,username</h3>
<a href="user/update1.do?id=100&username=jack">update</a>

<h3>传入id,username,赋值User</h3>
<a href="user/update2.do?id=100&name=jack">update</a>

<h3>获取请求参数：把请求参数封装到对象的集合中</h3>
<form action="/user/update3.do" method="post">
    用户id:<input type="text" name="id"><br>
    用户名称:<input type="text" name="name"><br>
    省份:<input type="text" name="address.province"><br>
    城市:<input type="text" name="address.city"><br>
    list省份:<input type="text" name="list[0].province"><br>
    list城市:<input type="text" name="list[0].city"><br>
    list省份:<input type="text" name="list[1].province"><br>
    list城市:<input type="text" name="list[1].city"><br>

    map省份:<input type="text" name="map['one'].province"><br>
    map城市:<input type="text" name="map['one'].city"><br>
    map省份:<input type="text" name="map['two'].province"><br>
    map城市:<input type="text" name="map['two'].city"><br>

    <input type="submit" name="post提交"><br>
</form>
</body>
</html>
